<!--
 * @Author: shy_didi
 * @Date: 2020-06-11 14:14:46
 * @LastEditTime: 2020-06-12 10:39:26
 * @LastEditors: Please set LastEditors
 * @Description: 卵化平台-详情页
 * @FilePath: \发明人\fmr\src\pages\support\components\platform\platformDetails.vue
--> 
<template>
  <div class="details">
    <div>{{datas.name}}</div>
    <div>{{datas.date}}</div>
    <div v-html="datas.content"></div>

    <div class="prev">
      <router-link :to="{path:'/support/platformDetails',query:{id:this.$route.id}}">
        <div>上一条</div>
        <div>{{}}</div>
      </router-link>
    </div>
    <div class="next">
      <router-link :to="{path:'/support/platformDetails',query:{id:this.$route.id}}">
        <div>下一条</div>
        <div></div>
      </router-link>
    </div>
  </div>
</template>

<script>
import * as api from "@/request/api/apiList/partner.js";
export default {
  props: ["id"],
  data() {
    return {
      datas: {}
    };
  },
  methods: {
    async API_detail(num) {
      return await api.detail(num);
    }
  },
  async created() {
    let res = await this.API_detail();
    console.log(res)
    if (res.data.code === 200) {
      this.datas = res.data.data.detail;
    }
  }
};
</script>

<style>
</style>